<?php defined('IN_IA') or exit('Access Denied');?><?php (!empty($this) && $this instanceof WeModuleSite || 1) ? (include $this->template('base/common-header', TEMPLATE_INCLUDEPATH)) : (include template('base/common-header', TEMPLATE_INCLUDEPATH));?>

<div class="btn-group" role="group" aria-label="...">
    <a href="<?php  echo aurl('update')?>" class="btn btn-success">新增</a>
    <a href="javascript:;" class="btn btn-primary check-all-control">全选</a>
    <a href="<?php  echo aurl('remove')?>" class="btn btn-danger ajax-post confirm" data-form="#form" data-confirm="确定要删除勾选项吗?">删除</a>
</div>

<form action="javascript:void(0)" method="POST" id="form">
<table class="table table-hover">
    <thead>
    <tr>
        <th>#</th>
        <th>编号</th>
        <th>名称</th>
        <th>排序</th>
        <th>状态</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <?php  if(is_array($list)) { foreach($list as $index => $item) { ?>
    <tr>
        <td><input type="checkbox" name="id[]" class="check-all" value="<?php  echo $item['id'];?>"></td>
        <td><?php  echo $item['uni_id'];?></td>
        <td><?php  echo $item['name'];?></td>
        <td><?php  echo $item['sort'];?></td>
        <td><?php  echo $_W['NS']['industry_status'][$item['status']];?></td>
        <td>
            <a href="<?php  echo aurl('update', ['pid'=>$item['id']])?>" class="label label-success">修改</a>
            <a href="<?php  echo aurl('remove', ['pid'=>$item['id']])?>" class="label label-danger ajax-post confirm" data-id="<?php  echo $item['id'];?>">删除</a>
        </td>
    </tr>
    <?php  } } ?>
    </tbody>
</table>
    <?php  echo $page;?>
</form>

<?php (!empty($this) && $this instanceof WeModuleSite || 1) ? (include $this->template('base/common-footer', TEMPLATE_INCLUDEPATH)) : (include template('base/common-footer', TEMPLATE_INCLUDEPATH));?>
